function del(_element){
    var _parentElement = _element.parentNode;
    if(_parentElement){
        _parentElement.removeChild(_element);
    }
}
function $id(did) {
    var id = did
    var fnobj = ''
    fnobj =  {
        html:function(node){
            document.getElementById(id).innerHTML = node;return $id(id)
        },
        data:function(key,value){
            if(document.getElementById(id).hasOwnProperty('dataset')){
                if(!value){
                    return document.getElementById(id).dataset[key]
                }
                document.getElementById(id).dataset[key] = value
            }else{
                if(!value){
                    return document.getElementById(id).getAttribute(key)
                }
                $id(id).attr(key,value)
            }
            return $id(id)
        },
        attr:function(key,value){
            if(!value){
                return document.getElementById(id).getAttribute(key),$id(id)
            }else{
                document.getElementById(id).setAttribute(key,value)
            }
            return $id(id)
        },
        remove: function() {
            del(document.getElementById(id))
        }
    }
    return fnobj
}
// function $qsa(ele) {
//     return document.querySelectorAll(ele)
// }
// function $qs(ele) {
//     return document.querySelector(ele)
// }
// function $class(className) {
//     return document.getElementsByClassName(className)
// }
// function $tag(tagName) {
//     return document.getElementsByTagName(tagName)
// }